﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace Assets.Scripts.Times
{
	class TimeScaleEditor : MonoBehaviour
	{
		[SerializeField]
		private bool m_Stop = false;

		[SerializeField]
		private float m_TimeScale = 1f;

		public void PauseOrPlay(bool stop)
		{
			m_Stop = stop;
			Time.timeScale = stop ? 0 : m_TimeScale;
		}

		public void ChangeTimeScale(float scale)
		{
			m_TimeScale = scale;
			Time.timeScale = scale;
		}
	}
}
